package com.kylefu.design.pattern.adapter;

public class CallBackAdapter implements Runnable {

  private Callback callback;

  public CallBackAdapter(Callback callback) {
    this.callback = callback;
  }

  @Override
  public void run() {
    try {
      callback.call();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
}
